package com.jzr.pda.controller.open;

import com.jzr.common.entity.vo.Result;
import com.jzr.common.util.MD5Util;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "辅助接口")
@RestController
@RequestMapping("/open/helper")
public class HelperController {
    @ApiOperation(value="md5加密",consumes="application/x-www-form-urlencoded")
    @PostMapping("/md5")
    public Result<String> md5(@ApiParam("未加密的字符串") String value){
        String s =  MD5Util.MD5(value);
        return Result.success("成功",s);
    }
}
